package com.knight.study.patterns.tujie.chain;

/**
 * @Author knight
 * @Date 2024/9/11 17:12
 */

public class OddSupport extends Support{
    public OddSupport(String name) {
        super(name);
    }

    @Override
    protected boolean resolve(Trouble trouble) {
        if (trouble.getNumber() % 2 == 1) {
            return true;
        } else {
            return false;
        }
    }
}
